package Model.Relation;

public class Cart {
    private Long userid;//PK,FK
    private Long commodityid;//PK,FK
    private Integer num;
    private Double price;//单价
    private Boolean iscoupons;//是否有可用优惠券
    private Boolean ischoosen;//是否选中

    public void setIschoosen(Boolean ischoosen) {
        this.ischoosen = ischoosen;
    }

    public Boolean getIschoosen() {

        return ischoosen;
    }

    public void setUserid(Long userid) {
        this.userid = userid;
    }

    public Long getUserid() {

        return userid;
    }
    public void setNum(Integer num) {
        this.num = num;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public void setIscoupons(Boolean iscoupons) {
        this.iscoupons = iscoupons;
    }

    public void setCommodityid(Long commodityid) {

        this.commodityid = commodityid;
    }

    public Long getCommodityid() {

        return commodityid;
    }

    public Integer getNum() {
        return num;
    }

    public Double getPrice() {
        return price;
    }

    public Boolean getIscoupons() {
        return iscoupons;
    }
}
